//输入一个字符串再逆序打印
#include <stdio.h>

int main()
{
    char arr[10000];
    int i = 0;
    for(i = 0; (arr[i] = getchar()) != '\n'; i++);
    int left = 0;
    int right = i - 1;
    while(right > left)
    {
        int k = arr[left];
        arr[left] = arr[right];
        arr[right] = k;
        left++;
        right--;
    }
    printf("%s\n", arr);
    return 0;
}